<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmColor.cpp -->
  <meta name="description" content="部分常用颜色和颜色计算方法.">
  <title>QCtmColor Class | QCustomUi 1.17.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.17.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmColor</li>
<li id="buildversion">QCustomUi 1.17.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmColor Class</h1>
<!-- $$$QCtmColor-brief -->
<p>部分常用颜色和颜色计算方法. <a href="#details">More...</a></p>
<!-- @@@QCtmColor -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <code translate="no">#include &lt;QCtmColor.h&gt;</code></td></tr>
</table></div>
<ul>
<li><a href="qctmcolor-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qctmcolor.html#Colors-enum" translate="no">Colors</a></b> { Color0, Color1, Color2, Color3, Color4, &hellip;, Color19 }</td></tr>
</table></div>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qctmcolor.html#generateBackgroundColor" translate="no">generateBackgroundColor</a></b>(int <i>index</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QColor </td><td class="memItemRight bottomAlign"><b><a href="qctmcolor.html#generateForegroundColor" translate="no">generateForegroundColor</a></b>(QColor <i>color</i>)</td></tr>
</table></div>
<!-- $$$QCtmColor-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmColor -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Colors$$$Color0$$$Color1$$$Color2$$$Color3$$$Color4$$$Color5$$$Color6$$$Color7$$$Color8$$$Color9$$$Color10$$$Color11$$$Color12$$$Color13$$$Color14$$$Color15$$$Color16$$$Color17$$$Color18$$$Color19 -->
<h3 class="fn" translate="no" id="Colors-enum">enum QCtmColor::<span class="name">Colors</span></h3>
    <style type="text/css" id="colorstyles">
    #color-0 { background-color: #2D74EA; color: #2D74EA }
    #color-1 { background-color: #002050; color: #002050 }
    #color-2 { background-color: #35888B; color: #35888B }
    #color-3 { background-color: #4D4895; color: #4D4895 }
    #color-4 { background-color: #AB742C; color: #AB742C }
    #color-5 { background-color: #783913; color: #783913 }
    #color-6 { background-color: #55815D; color: #55815D }
    #color-7 { background-color: #2D41A7; color: #2D41A7 }
    #color-8 { background-color: #19422B; color: #19422B }
    #color-9 { background-color: #226546; color: #226546 }
    #color-10 { background-color: #2AB0C8; color: #2AB0C8 }
    #color-11 { background-color: #4D4F51; color: #4D4F51 }
    #color-12 { background-color: #288A33; color: #288A33 }
    #color-13 { background-color: #27245C; color: #27245C }
    #color-14 { background-color: #CFA183; color: #CFA183 }
    #color-15 { background-color: #827393; color: #827393 }
    #color-16 { background-color: #C43F16; color: #C43F16 }
    #color-17 { background-color: #707FC7; color: #707FC7 }
    #color-18 { background-color: #AD5466; color: #AD5466 }
    #color-19 { background-color: #765542; color: #765542 }
    </style>
    <div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color0</code></td><td class="topAlign tblval"><code translate="no">0x2D74EA</code></td><td class="topAlign"><code translate="no"><span id="color-0">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color1</code></td><td class="topAlign tblval"><code translate="no">0x002050</code></td><td class="topAlign"><code translate="no"><span id="color-1">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color2</code></td><td class="topAlign tblval"><code translate="no">0x35888B</code></td><td class="topAlign"><code translate="no"><span id="color-2">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color3</code></td><td class="topAlign tblval"><code translate="no">0x4D4895</code></td><td class="topAlign"><code translate="no"><span id="color-3">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color4</code></td><td class="topAlign tblval"><code translate="no">0xAB742C</code></td><td class="topAlign"><code translate="no"><span id="color-4">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color5</code></td><td class="topAlign tblval"><code translate="no">0x783913</code></td><td class="topAlign"><code translate="no"><span id="color-5">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color6</code></td><td class="topAlign tblval"><code translate="no">0x55815D</code></td><td class="topAlign"><code translate="no"><span id="color-6">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color7</code></td><td class="topAlign tblval"><code translate="no">0x2D41A7</code></td><td class="topAlign"><code translate="no"><span id="color-7">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color8</code></td><td class="topAlign tblval"><code translate="no">0x19422B</code></td><td class="topAlign"><code translate="no"><span id="color-8">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color9</code></td><td class="topAlign tblval"><code translate="no">0x226546</code></td><td class="topAlign"><code translate="no"><span id="color-9">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color10</code></td><td class="topAlign tblval"><code translate="no">0x2AB0C8</code></td><td class="topAlign"><code translate="no"><span id="color-10">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color11</code></td><td class="topAlign tblval"><code translate="no">0x4D4F51</code></td><td class="topAlign"><code translate="no"><span id="color-11">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color12</code></td><td class="topAlign tblval"><code translate="no">0x288A33</code></td><td class="topAlign"><code translate="no"><span id="color-12">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color13</code></td><td class="topAlign tblval"><code translate="no">0x27245C</code></td><td class="topAlign"><code translate="no"><span id="color-13">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color14</code></td><td class="topAlign tblval"><code translate="no">0xCFA183</code></td><td class="topAlign"><code translate="no"><span id="color-14">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color15</code></td><td class="topAlign tblval"><code translate="no">0x827393</code></td><td class="topAlign"><code translate="no"><span id="color-15">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color16</code></td><td class="topAlign tblval"><code translate="no">0xC43F16</code></td><td class="topAlign"><code translate="no"><span id="color-16">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color17</code></td><td class="topAlign tblval"><code translate="no">0x707FC7</code></td><td class="topAlign"><code translate="no"><span id="color-17">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color18</code></td><td class="topAlign tblval"><code translate="no">0xAD5466</code></td><td class="topAlign"><code translate="no"><span id="color-18">-------------</span></code></td></tr>
<tr><td class="topAlign"><code translate="no">QCtmColor::Color19</code></td><td class="topAlign tblval"><code translate="no">0x765542</code></td><td class="topAlign"><code translate="no"><span id="color-19">-------------</span></code></td></tr>
</table></div>
<!-- @@@Colors -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$generateBackgroundColor[overload1]$$$generateBackgroundColorint -->
<h3 class="fn" translate="no" id="generateBackgroundColor"><code class="details extra" translate="no">[static]</code> <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> QCtmColor::<span class="name">generateBackgroundColor</span>(<span class="type">int</span> <i>index</i>)</h3>
<p>生成背景色 <i translate="no">index</i>, 如果 <i translate="no">index</i> 超过20，从头开始循环.</p>
<p><b>See also </b><a href="qctmcolor.html#generateForegroundColor" translate="no">generateForegroundColor</a>.</p>
<!-- @@@generateBackgroundColor -->
<!-- $$$generateForegroundColor[overload1]$$$generateForegroundColorQColor -->
<h3 class="fn" translate="no" id="generateForegroundColor"><code class="details extra" translate="no">[static]</code> <span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> QCtmColor::<span class="name">generateForegroundColor</span>(<span class="type"><a href="https://doc.qt.io/qt/qcolor.html" translate="no">QColor</a></span> <i>color</i>)</h3>
<p>根据 <i translate="no">color</i> 生成前景色.</p>
<p><b>See also </b><a href="qctmcolor.html#generateBackgroundColor" translate="no">generateBackgroundColor</a>.</p>
<!-- @@@generateForegroundColor -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
